#include <stdio.h>
int main()
{
    int year = 0;
    printf("输入年份>");
    scanf("%d", &year);
    if(year % 400 == 0 || (year % 4 == 0 && year % 100 != 0))
	{
		printf("%d是闰年。\n", year);
	}
    else
    {
        printf("%d 是平年。\n", year);
    }
    
    return 0;
}
